package com.jinke.api.modules.app.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum Roles {

    USER(1, "普通用户"),
    FINANCE(2, "财务"),
    ADMIN(5, "超级管理员"),
    CUSTOMER_SERVICE(8, "客服"),
    SALES(9, "销售"),
    COMMON_SALES(10, "普通管理员"),
    ;


    @EnumValue
    @JsonValue
    private final int value;
    private final String desc;

    Roles(final int value, final String desc) {
        this.value = value;
        this.desc = desc;
    }


}